package com.juicygames.framework.gamepart;

public abstract class GameComponent extends GamePart {
	
	public <G extends GamePart> G addPart(G part) {
		G addedPart = super.addPart(part);
		
		part.setEntity(getComponentEntity());
		
		return addedPart;
	}
	
	public void destroy() {
		parent.destroyPart(this);
	}
}
